home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aplicaciones Windows
/
Aplicaciones Windows.iso
/
Educa
/
UCALC32.ZIP
/
PLOTDEMO
< prev
next >
Wrap
Text File
|
1996-11-21
|
1KB
|
40 lines
; To run this demo, type PLOTDEMO at the DOS prompt.
; Please remember to register.
prec 4 ; Many graphs do not require high precision for visual accuracy.
gcolor 8 ; GCOLOR sets the background color.
plot
y=sin(x) ; Try the different menu options,
y=2sin(x) ; and then press [Esc] to move on to the next screen.
y=3sin(x)
y=4sin(x)
grid 7
window(-1,10,-1,8)
plot x^sin(x), 2 to 7
window(-10,10,-7.5,7.5) ; Back to the default window setting
grid 0 ; grid is turned off
prec 10 ; precision is reset to default
plot r=t/pi, 0 to 5pi ; Polar equation
plot x=cos(t)-cos(2t), y=sin(t)-sin(2t), 0 to 2pi ; Parametric equation
plot"graph.dat" ; Plots the data from another file
; The following are 3D graphs
plot3d y=(sin(x)+cos(z))*z/3
plot3d y=cos(sqrt(x^2+z^2))*5
plot3d y=(sin(x)+cos(z))*x*z/10
plot3d y=exp(sin(x)*z/4)*cos(z)
plot3d y=exp(sin(x)*z/4)*cos(sqrt(x^2+z^2))
connect off
plot3d y=sin(int(x))*z^2/10*(z>0)+x*sin(z)/4 ; connect off
exit